package com.stx.jeepay.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.stx.jeepay.core.entity.MchNotifyRecordEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商户通知记录表
 * 
 * @author suntingxing
 * @email 1@gmail.com
 * @date 2023-09-11 13:05:22
 */
@Mapper
public interface MchNotifyRecordDao extends BaseMapper<MchNotifyRecordEntity> {

    /** 修改通知结果 */
    Integer updateNotifyResult(@Param("notifyId") Long notifyId, @Param("state") Byte state, @Param("resResult") String resResult);

    /**
     * 功能描述: 更改为通知中 & 增加允许重发通知次数
     * @param notifyId
     * @return
     */
    Integer updateIngAndAddNotifyCountLimit(Long notifyId);
}
